//import React from 'react';
//import ReactDOM from 'react-dom';
import './index.css';
//import App from './App';
import router from './routers/index'
import model from './models/index'
import createHistory from 'history/createBrowserHistory'
import teacher from './models/teacher'
//导入dva
import dva from 'dva';
//创建dva实例
let app = dva(
    {
        history: createHistory(),
    }
);
//配置路由
app.router(router);//函数
//配置model
app.model(model);//对象
app.model(teacher);

app.start('#root')
//ReactDOM.render(<App />, document.getElementById('root'));

